home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Feedbacks and Questions - ODF R1
- Sent: 5/22/96 12:31 AM
- Received: 5/22/96 8:31 AM
- From: Shinsaku Akogi, ak3s-akg@asahi-net.or.jp
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
-
- >Look at the ODFClock. It maintains an oval used shape which is very
- >similar to what you want to do.
-
- I tried to do what ODFClock's AdjustUsedShape and AdjustActiveShape,
- spending some time before I ask another question that beats me.
- What I want to do must be somewhat as below:
- -------------------------------------------------------------
- ODShape* CButtonFrame::AdjustUsedShape(Environment* ev,
- ODShape*
- suggestedUsedShape)
- {
- if (GetViewType(ev) != FW_CPart::gViewAsFrameToken)
- return FW_CFrame::AdjustUsedShape(ev, suggestedUsedShape);
-
- FW_CRect rect(usedRect);
-
- FW_CRect usedRect = FW_GetShapeBoundingBox(ev, suggestedUsedShape);
-
- ODShape* newUsedShape;
-
- newUsedShape = ::FW_CreateRoundRectODShape(ev, rect, ???);
- return newUsedShape;
- }
- ODShape* CButtonFrame::AdjustActiveShape(Environment* ev,
- ODFacet* facet, ODShape*
- suggestedActiveShape)
- {
- if (GetViewType(ev) != FW_CPart::gViewAsFrameToken)
- return FW_CFrame::AdjustActiveShape(ev, facet,
-
- suggestedActiveShape);
-
- suggestedActiveShape->Acquire(ev);
- return suggestedActiveShape;
- }
- ---------------------------------------------------------------------
- "???" part is the question:
- How do I get the value for ovalSize parameter of the button?
-